package com.yjps.system.model;

import com.yjps.common.model.BaseModel;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;

/**
 * Created by jessy on 2015/8/25.
 */
@Entity
@Table(name = "t_house_complaint_history")
public class Complaint extends BaseModel{
    /*@Column(name = "house_id")
    private int houseId;*/
    @Column(name = "user_id")
    private int userId;
    @Column(name = "complaint_state")
    private int complaintState;
    @Column(name = "complaint_reason")
    private String complaintReason;
    /**
     * 投诉附加图片
    @Column(name = "complaint_image")
    private String complaintImage;*/
    @Column(name = "complaint_time")
    private String complaintTime;
    @Column(name = "complaint_accept_time")
    private String acceptTime;
    /**
     * 是否已经受理
     */
    @Column(name = "complaint_accept_result")
    private int acceptResult;
    @Transient
    private String username;

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    /*public int getHouseId() {
        return houseId;
    }

    public void setHouseId(int houseId) {
        this.houseId = houseId;
    }*/

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public int getComplaintState() {
        return complaintState;
    }

    public void setComplaintState(int complaintState) {
        this.complaintState = complaintState;
    }

    public String getComplaintReason() {
        return complaintReason;
    }

    public void setComplaintReason(String complaintReason) {
        this.complaintReason = complaintReason;
    }

    /*public String getComplaintImage() {
        return complaintImage;
    }

    public void setComplaintImage(String complaintImage) {
        this.complaintImage = complaintImage;
    }*/

    public String getComplaintTime() {
        return complaintTime;
    }

    public void setComplaintTime(String complaintTime) {
        this.complaintTime = complaintTime;
    }

    public String getAcceptTime() {
        return acceptTime;
    }

    public void setAcceptTime(String acceptTime) {
        this.acceptTime = acceptTime;
    }

    public int getAcceptResult() {
        return acceptResult;
    }

    public void setAcceptResult(int acceptResult) {
        this.acceptResult = acceptResult;
    }
}

